<section class="content-header">
  <!-- <h1>
        代理记账业务
    </h1> -->
  <ol class="breadcrumb">
    <li><a ui-sref="dashboard"><i class="fa fa-dashboard"></i>我的面板</a></li>
    <li><a ui-sref="account">记账业务</a></li>
    <li class="active" ng-bind="current_bread"></li>
  </ol>
</section>
<section class="content">
  <form class="form-horizontal" id="account_form">
    <div class="detail-view-header-wrapper">
      <div class="box-footer detail-view-header" ui-scrollpoint ui-scrollpoint-enabled="true" ui-scrollpoint-class="fixed">
        <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
        <button type="button" class="btn btn-info" ng-click="save()">保存</button>
      </div>
    </div>
    <!-- <div class="box box-danger" ng-if="action=='add'">
      <div class="box-header with-border">
        <h3 class="box-title">旧数据迁移</h3>
        <div class="box-tools">
          <div class="box-tools pull-right">
            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
            </button>
          </div>
        </div>
      </div>
      <div class="box-body">
        <div class="form-group">
          <label class="col-sm-2 control-label">是否为旧订单<span class="required">*</span></label>
          <div class="col-sm-8">
            <select class="form-control select2" name="is_old" ng-model="data.is_old" data-rule="required;">
              <option value="">请选择</option>
              <option value="1">旧数据迁移</option>
              <option value="0">新订单</option>
            </select>
          </div>
        </div>
      </div>
    </div> -->
    <div class="box box-danger">
      <div class="box-header with-border">
        <h3 class="box-title">客户基本信息</h3>
        <div class="box-tools">
          <div class="box-tools pull-right">
            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
            </button>
          </div>
        </div>
      </div>
      <div class="box-body">
        <div class="form-group">
          <label class="col-sm-2 control-label">客户名称<span class="required">*</span></label>
          <div class="col-sm-8">
            <select ui-select2 class="form-control select2" id="customerSelect2" name="customer_id" ng-view="customer_name" ng-model="data.customer_id" data-formatfields="code,text" data-formatcaptions="编号,名称" data-rule="required;" url="Customer/SearchForDropdown" paging="true" style="width: 100%;"></select>
            <span id="customerSelect2-validator" class="select-validator"></span>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">行业类别</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" ng-model="data.industry" disabled>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">详细地址</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" placeholder="所属省" ng-model="data.province" disabled style="width:18%">
            <input type="text" class="form-control" placeholder="所属市" ng-model="data.city" disabled style="width:18%">
            <input type="text" class="form-control" placeholder="所属县" ng-model="data.county" disabled style="width:18%">
            <input type="text" class="form-control" placeholder="详细地址" ng-model="data.customer_address" disabled style="width:44%">
          </div>
        </div>

        <!-- <div class="form-group">
          <label class="col-sm-2 control-label">所属省</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" ng-model="data.province" disabled>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">所属市</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" ng-model="data.city" disabled>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">所属县</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" ng-model="data.county" disabled>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">地址</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" ng-model="data.customer_address" disabled>
          </div>
        </div> -->

        <!-- <div class="form-group">
          <label class="col-sm-2 control-label">联系人</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" ng-model="data.contact" disabled>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">手机</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" ng-model="data.mobile" disabled>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">座机</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" ng-model="data.tel" disabled>
          </div>
        </div> -->
      </div>
    </div>
    <div class="box box-danger">
      <div class="box-header with-border">
        <h3 class="box-title">公司信息</h3>
        <div class="box-tools">
          <div class="box-tools pull-right">
            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
            </button>
          </div>
        </div>
      </div>
      <div class="box-body">
        <div class="form-group" ng-if="data.is_old != 1">
          <label class="col-sm-2 control-label">档案号<span class="required">*</span></label>
          <div class="col-sm-8">
            <input type="text" class="form-control" ng-model="data.code" placeholder="系统自动生成" readonly>
          </div>
        </div>
        <div class="form-group" ng-if="data.is_old == 1">
          <label class="col-sm-2 control-label">档案号<span class="required">*</span></label>
          <div class="col-sm-8">
            <input type="text" class="form-control" name="code" ng-model="data.code" data-rule="required;code;" placeholder="区域代码+订单代码+流水号">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">订单来源<span class="required">*</span></label>
          <div class="col-sm-8">
            <select class="form-control select2" name="source_type" ng-model="data.source_type" data-rule="required;">
              <option value="">请选择</option>
              <option value="0">国内注册</option>
              <option value="1">转秘书</option>
            </select>
          </div>
        </div>
        <div class="form-group" ng-if="data.source_type == '0'">
          <label class="col-sm-2 control-label">来源单据</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" ng-model="data.source_code" disabled>
          </div>
          <div class="col-sm-1 add-dictionary">
            <a class="fa fa-search" ng-click="selectSource()"></a>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">公司名称</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" name="name" ng-model="data.name" data-rule="required;length[~100];">
          </div>
        </div>

        <div class="form-group">
          <label class="col-sm-2 control-label">地址</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" name="address" ng-model="data.address" data-rule="length[~100];">
          </div>
        </div>

        <!-- <div class="form-group" ng-if="data.is_annual != 1">
          <label class="col-sm-2 control-label">成交金额</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" name="amount_transaction" ng-model="data.amount_transaction" data-rule-money="[/^(([1-9]\d{0,9})|0)(\.\d{1,2})?$/, '请填写2位小数的数值']" data-rule="money;">
          </div>
        </div>

        <div class="form-group">
          <label class="col-sm-2 control-label">是否含税<span class="required">*</span></label>
          <div class="col-sm-8">
            <select class="form-control select2" name="tax" ng-model="data.tax" data-rule="required;">
              <option value="">请选择</option>
              <option value="0">否</option>
              <option value="1">是</option>
            </select>
          </div>
        </div> -->

      </div>
    </div>

    <!-- <div class="box box-danger" ng-if="data.tax == 1">
      <div class="box-header with-border">
        <h3 class="box-title">开票信息</h3>
        <div class="box-tools">
          <div class="box-tools pull-right">
            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
            </button>
          </div>
        </div>
      </div>
      <div class="box-body">
        <div class="form-group">
          <label class="col-sm-2 control-label">名称<span class="required">*</span></label>
          <div class="col-sm-8">
            <input type="text" class="form-control" name="invoice_name" ng-model="data.invoice_name" data-rule="required;">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">纳税人识别号<span class="required">*</span></label>
          <div class="col-sm-8">
            <input type="text" class="form-control" name="invoice_tax" ng-model="data.invoice_tax" data-rule="required;">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">地址<span class="required">*</span></label>
          <div class="col-sm-8">
            <input type="text" class="form-control" name="invoice_address" ng-model="data.invoice_address" data-rule="required;">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">电话</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" name="invoice_tel" ng-model="data.invoice_tel">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">开户行<span class="required">*</span></label>
          <div class="col-sm-8">
            <input type="text" class="form-control" name="invoice_bank" ng-model="data.invoice_bank" data-rule="required;">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">开户行账号<span class="required">*</span></label>
          <div class="col-sm-8">
            <input type="text" class="form-control" name="invoice_account" ng-model="data.invoice_account" data-rule="required;">
          </div>
        </div>
      </div>
    </div> -->

    <!-- <div class="box box-danger">
      <div class="box-header with-border">
        <h3 class="box-title">其他信息</h3>
        <div class="box-tools">
          <div class="box-tools pull-right">
            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
            </button>
          </div>
        </div>
      </div>
      <div class="box-body">
        <div class="form-group">
          <label class="col-sm-2 control-label">业务员<span class="required">*</span></label>
          <div class="col-sm-8">
            <select ui-select2 class="form-control select2" id="salesmanSelect2" name="salesman_id" ng-view="salesman" ng-model="data.salesman_id" data-rule="required;" url=" Member/List" paging="true" style="width: 100%;"></select>
            <span id="salesmanSelect2-validator" class="select-validator"></span>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">助理</label>
          <div class="col-sm-8">
            <select ui-select2 class="form-control select2" id="assistantSelect2" allowclear="true" name="assistant_id" ng-view="assistant_name" ng-model="data.assistant_id" url=" Member/List" paging="true" style="width: 100%;"></select>
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">经理</label>
          <div class="col-sm-8">
            <select ui-select2 class="form-control select2" id="waiterSelect2" allowclear="true" name="manager_id" ng-view="manager_name" ng-model="data.manager_id" url=" Member/List" paging="true" style="width: 100%;"></select>
          </div>
        </div>
      </div>
    </div> -->
  </form>
</section>
<div ui-view="modal"></div>
<div ui-view="bank"></div>
<div ui-view="source"></div>
